home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / intrctvg.hqx / Create a Class / stack_-1.xml < prev    next >
Extensible Markup Language  |  1992-12-06  |  4KB  |  16 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>17</cardCount>
  7.     <cardID>11155</cardID>
  8.     <listID>5339</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><true /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on closestackglobal uselevif the  short name of this stack is not "Create a Class" thenput "yes" into cd fld "check" of cd "gradepoint"else put "" into cd fld "check" of cd "gradepoint"reset menubarset userlevel to uselevput cd fld "pass option" of cd "entergrade" into xif x is "no" then exit closestackput "" into cd fld "check" of cd "entergrade"if freesize of this stack > size of this stack / 4 thendomenu "Compact Stack"end ifend closestackon openstackglobal uselevif the version of HyperCard < 2 thenanswer "Sorry, HyperCard 2.0 or later is required."go Homeend ifset cursor to watchlock screenput the userlevel into uselev   --restore userlevelset userlevel to 3delete menu "Style"               --create menubardelete menu "Font"delete menu "Tools"delete menu "Objects"repeat with x = 15 down to 6delete menuitem x of menu 2end repeatdelete menuitem 1 of menu 2repeat with x = 15 down to 8delete menuitem x of menu 3end repeatdelete menuitem 14 of menu 4delete menuitem 12 of menu 4Create menu "Navigate"Create menu "Calculate"Create menu "Print"Put "This Student's Grade,All Students' Grades,Class Averages"┬¼into menu "Calculate"set commandchar of menuitem 1 of menu 6 to "G"put "Class Roster Card,Filled Assignment Sheets,"&┬¼"This Student's Grade Card,All Students' Grade Cards,Class Average Grade Card,"&┬¼"Class Summary Grade Card,-,"&┬¼"Page Setup...,Print Field...,Print Card,Print Stack...,Print Report"┬¼into menu "Print"put "Go to a New Class,Go to Class Roster Card,Go to First Student Card,Go to Class Average Card,Go to Class Summary Card,"&┬¼"Go to Assignment Sheets,Go to Grade Cutoffs" into menu "Navigate"set commandchar of menuitem 2 of menu 5 to "A"put "Change Password" after menuitem 7 of menu 3get the short name of this stackif it is "Create a Class" then disable menuitem "Change Password" of menu "Edit"unlock screenend openstackon domenu x                   --menu command scriptsglobal namesif x is "Class Roster Card" then        --Print menugo cd "EnterGrade"domenu "print card"exit domenuend ifif x is "This Student's Grade Card" thenput the number of this cd into chekput the number of cd "entergrade" into enteput (ente + names) into nowif chek Γëñ ente or chek > now thenbeepanswer "First go to a student's card."exit domenuend ifprint cdexit domenuend ifif x is "Class Average Grade Card" thengo cd "Class Averages"domenu "print card"exit domenuend ifif x is "Filled Assignment Sheets" thengo cd "assign1"put the number of this cd into xput the number of the last cd into yput y-x into zadd 1 to zhide background button 1hide background button 2print z cardsgo cd "assign1"show background button 1show background button 2exit domenuend ifif x is "All Students' Grade Cards" thenput the number of cd "entergrade" into ego cd (e+1)print names cardsexit domenuend ifif x is "Class Summary Grade Card" thengo cd "summary"domenu "print card"exit domenuend ifif x is "All Students' Grades" then            --Calculate menuput 1 into xyzput the number of cd "entergrade" into ego cd (e+1)send mouseup to background button "calculate grade"repeat until xyz = namesgo next cdadd 1 to xyzsend mouseup to background button "calculate grade"end repeatexit domenuend ifif x is "This Student's Grade" thenput the number of this cd into chekput the number of cd "entergrade" into enteput (ente + names) into nowif chek Γëñ ente or chek > now thenbeepanswer "First go to a student's card."exit domenuend ifsend mouseup to background button "calculate grade"exit domenuend ifif x is "Class Average